package com.rent.business.controller;

import com.github.pagehelper.PageInfo;
import com.rent.business.model.CmsHelp;
import com.rent.business.service.ICmsHelpService;
import com.rent.common.pojo.ResultJSON;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * 帮助表 前端控制器
 * </p>
 *
 * @author zn
 * @since 2025-03-04
 */
@RestController
@RequestMapping("/cms/help")
@Api(value = "CmsHelpController", tags = "帮助相关接口")
public class CmsHelpController extends MyBaseController<ICmsHelpService, CmsHelp, Integer> {

    @Override
    public ResultJSON<PageInfo<CmsHelp>> pageList(Integer page, Integer size, CmsHelp model) {
        return super.pageList(page, size, model);
    }

    @ApiOperation(value = "获取数据", notes = "获取数据")
    @RequestMapping(value = "/get", method = RequestMethod.GET)
    @Override
    public ResultJSON<CmsHelp> getByKey(@ApiParam(value = "ID") @RequestParam(value = "id") Integer id) {
        return super.getByKey(id);
    }
}
